package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) AdvertRouter() {
	advertApi := api.ApiGroupApp.AdvertApi
	router.POST("advert", middleware.JwtAdmin(), advertApi.AdvertAddView)
	router.GET("advert", middleware.JwtAuth(), advertApi.AdvertListView)
	router.DELETE("advert", middleware.JwtAdmin(), advertApi.AdvertDelView)
	router.PUT("advert/:id", middleware.JwtAdmin(), advertApi.AdvertUpdateView)

}
